(shut_down_emacs): Set Vrun_hooks to nil.
authorRichard M. Stallman <rms@gnu.org>
Sat, 5 Mar 1994 20:38:30 +0000 (20:38 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 5 Mar 1994 20:38:30 +0000 (20:38 +0000)
src/emacs.c

index f76d224d04bb775e8b109723779999ab173896fb..2fcb6a8b9e7160518b8c72923bfd103461d17581 100644 (file)
@@ -821,6 +821,9 @@ shut_down_emacs (sig, no_x, stuff)
      int sig, no_x;
      Lisp_Object stuff;
 {
+  /* Prevent running of hooks from now on.  */
+  Vrun_hooks = Qnil;
+
   /* If we are controlling the terminal, reset terminal modes */
 #ifdef EMACS_HAVE_TTY_PGRP
   {